import http from "@/api/http";

export function getConfig(key: string) {
  return http.get({
    url: "/system/config/" + key
  });
}

export function updateConfig(obj: any) {
  return http.put({
    url: "/system/config",
    data: obj
  });
}
